package org.xiaoyu.feign.core.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.springframework.context.annotation.Import;
/**
 * 注册服务
 * @author zhangsaizz
 *
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import(FeignServiceRegister.class)
public @interface FeignService {

	/**
	 * 服务名称
	 * @return
	 */
	String name();
	/**
	 * 服务 地址
	 * @return
	 */
	String url();
}
